package app.fugema.shop.main.center.model;

import java.util.List;

public class BalanceDetailResult
{

    /**
     * success : true
     * msg :
     * code : 0
     * rows : [{"Id":17111200274067812,"UserId":0,"CapitalID":8,"SourceType":6,"Amount":4.5,"SourceData":"2017111051514205","CreateTime":"2017-11-12 00:27:40","Remark":"佣金收入","PayWay":"分销佣金,订单Id:2017111051514205,商品ID：1248 "}]
     * total : 422
     */

    private boolean success;
    private String msg;
    private int code;
    private int total;
    private List<RowsBean> rows;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public static class RowsBean {
        /**
         * Id : 17111200274067812
         * UserId : 0
         * CapitalID : 8
         * SourceType : 6
         * Amount : 4.5
         * SourceData : 2017111051514205
         * CreateTime : 2017-11-12 00:27:40
         * Remark : 佣金收入
         * PayWay : 分销佣金,订单Id:2017111051514205,商品ID：1248
         */

        private long Id;
        private int UserId;
        private int CapitalID;
        private int SourceType;
        private double Amount;
        private String SourceData;
        private String CreateTime;
        private String Remark;
        private String PayWay;

        public long getId() {
            return Id;
        }

        public void setId(long Id) {
            this.Id = Id;
        }

        public int getUserId() {
            return UserId;
        }

        public void setUserId(int UserId) {
            this.UserId = UserId;
        }

        public int getCapitalID() {
            return CapitalID;
        }

        public void setCapitalID(int CapitalID) {
            this.CapitalID = CapitalID;
        }

        public int getSourceType() {
            return SourceType;
        }

        public void setSourceType(int SourceType) {
            this.SourceType = SourceType;
        }

        public double getAmount() {
            return Amount;
        }

        public void setAmount(double Amount) {
            this.Amount = Amount;
        }

        public String getSourceData() {
            return SourceData;
        }

        public void setSourceData(String SourceData) {
            this.SourceData = SourceData;
        }

        public String getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(String CreateTime) {
            this.CreateTime = CreateTime;
        }

        public String getRemark() {
            return Remark;
        }

        public void setRemark(String Remark) {
            this.Remark = Remark;
        }

        public String getPayWay() {
            return PayWay;
        }

        public void setPayWay(String PayWay) {
            this.PayWay = PayWay;
        }

        public boolean isCharage()
        {
            return Amount > 0;
        }

    }
}
